<template>
  <n-button tertiary type="warning" @click="handleUpdateClick" style="margin-left: 10px">
    <template #icon>
      <n-icon :component="ModeEditOutlineOutlined"/>
    </template>
    {{ content }}
  </n-button>
</template>

<script lang="ts" setup>
import {ModeEditOutlineOutlined} from "@vicons/material";

const props = withDefaults(defineProps<{
  content: string
}>(), {
  content: "编辑"
});
const emits = defineEmits<{ (e: "showUpdate"): void }>();
const handleUpdateClick = (): void => {
  emits("showUpdate");
}
</script>